//
//  ThTabBox.m
//  Thanatos
//
//  Created by Joel Owens on 5/15/10.
//  Copyright 2010 Na'Shenassi.org. All rights reserved.
//

#import "ThTabBox.h"


@implementation ThTabBox

@synthesize backgroundColor;
@synthesize highlightColor;

- (void)resetCursorRects {
  NSCursor *cursor = [NSCursor pointingHandCursor];
  [self addCursorRect:[self visibleRect] cursor:cursor];
  [cursor setOnMouseEntered:YES];
  
}

- (void)mouseDown:(NSEvent *)theEvent {
  [self setFillColor:highlightColor];
}

- (void)mouseUp:(NSEvent *)theEvent {
  [self setFillColor:backgroundColor];
  [tabView selectTabViewItemWithIdentifier:[self title]];
}

@end
